package com.felight.string;

import java.io.*;

/**
 * This class reads character data from the file.
 * 
 * @author soumya
 * 
 */
public class FileReaderEx {

	public static void main(String[] args) {
		try {
			FileReader fr = new FileReader("output.txt"); // gives a reference
															// to the file
			BufferedReader br = new BufferedReader(fr); // gives reference to
														// buffer
			String str;
			str = br.readLine(); // reads a line from the file and put it inside
									// the buffer
			System.out.println(str);

		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
